//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopActivityGoodsSkuPrice, MinishopActivityGoodsSkuPriceResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopActivityGoodsSkuPriceList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopActivityGoodsSkuPriceResponse>(`/uctoo/minishop_activity_goods_sku_price/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopActivityGoodsSkuPrice = async (id: string) => {
  return requestClient.get<MinishopActivityGoodsSkuPrice>(`/uctoo/minishop_activity_goods_sku_price/${id}`);
};

export const adductooMinishopActivityGoodsSkuPrice = async (data: Partial<MinishopActivityGoodsSkuPrice>) => {
  return requestClient.post<MinishopActivityGoodsSkuPrice>('/uctoo/minishop_activity_goods_sku_price/add', data);
};

export const edituctooMinishopActivityGoodsSkuPrice = async (data: Partial<MinishopActivityGoodsSkuPrice>) => {
  return requestClient.post<MinishopActivityGoodsSkuPrice>('/uctoo/minishop_activity_goods_sku_price/edit', data);
};

export const deleteuctooMinishopActivityGoodsSkuPrice = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_activity_goods_sku_price/del', { id });
};
